/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Silvana
 */
public class Pais implements Comparable
{
    private static int idpais=1;
    private String nombre;
    private Continente cont;

    public Pais(String nombre, Continente cont) {
        this.nombre = nombre;
        this.cont = cont;
    }

    public Continente getCont() {
        return cont;
    }

    public  int getIdpais() {
        return idpais;
    }

    public String getNombre() {
        return nombre;
    }

    public void setCont(Continente cont) {
        this.cont = cont;
    }

    public static void setIdpais(int idpais) {
        Pais.idpais = idpais;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }
    
    public String toString ()
    {
            String aux= ("Id: "+String.valueOf(this.getIdpais())+ "  Nombre:" +this.getNombre());
            return aux;
    } 
    

    @Override
    public int compareTo(Object o) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    
}
